package com.yingxin.yx.framework.commons.activiti.enums;

public enum ConditionType {

    OP("OP", "运算符"),

    //PDGE("PDGE", "销售价差大于等于设置价差"),

    //PDLT("PDLT", "销售价差小于设置价差"),

    BOOL0("BOOL0", "否"),

    BOOL1("BOOL1", "是"),

    DE("DE", "部门"),

    LI("LI", "生产线"),

    SDT("SDT", "停机原因"),

    FYBX("FYBX", "费用报销"),
    HT("HT", "是否含税"),
    FUNDTYPE("FUNDTYPE", "款项类型"),

    PERSON("PERSON", "申请人"),
    LRFPLX("LRFPLX", "录入发票类型"),
    SHFS("SHFS", "销售方式"),
    YWLX("YWLX", "业务类型"),

    PSLX("PSLX", "碰伤类型"),

    CQ( "CQ", "厂区"),
    GSBXLX( "GSBXLX", "工伤报销类型"),
    ZKLX( "ZKLX", "款项转款类型"),

    CATEGORY("CATEGORY","镀锌品类"),
    FORM("FORM","自动义表单"),

    /**
     * 热轧代工轧硬是否入本公司： 0 是， 1 否
     * 1 时编辑申请走特殊流程，说明是安融销售部的业务
     */
    ISINMYCOMPANY("ISINMYCOMPANY", "是否入客户名称"),
    ;

    private String type;

    private String typeName;

    ConditionType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static ConditionType getEnum(String type) {
        for (ConditionType i : ConditionType.values()) {
            if (i.getType().equals(type)) {
                return i;
            }
        }
        return null;
    }

}
